import QtQuick 2.0
import org.qtproject.qtquick 1.0

import "qrc:/js/resources/Constants.js" as Constant

import "../common"
import "../page"


Rectangle {
    id: id_parent
    width: m_width
    height: m_height
    anchors.verticalCenter: parent.verticalCenter

    property int m_width ;
    property int m_height;

    property string sourceImage: Constant.m_avatarUrlFriendActive

    Row {
        Item {
            id: id_avatar
            width: m_width
            height: m_height
            anchors.verticalCenter: parent.verticalCenter

            Image {
                id: id_avatarUrl

                source: sourceImage

                height: parent.width
                width: parent.height

            }

            ImageTranparent {
                m_width: parent.width
                m_height: parent.height
                color: "transparent"
                background: "qrc:/images/resources/profile_mask_2.png"
            }
        }
    }
}

